package tau.dimes.visualization.applet.data;

/**
 * Represents a directed edge, a link between source and destination hops.
 */
public class Edge
{
	private Hop source;
	private Hop destination;

	/**
	 * Constructs a new Edge.
	 * @param source Source hop.
	 * @param destination Destination hop.
	 */
	public Edge(Hop source, Hop destination)
	{
		this.source = source;
		this.destination = destination;
	}

	/**
	 * Gets the source hop.
	 * @return Source hop.
	 */
	public Hop getSource()
	{
		return source;
	}

	/**
	 * Gets the destination hop.
	 * @return Destination hop.
	 */
	public Hop getDestination()
	{
		return destination;
	}
}
